Repository navigation
docs: rework the Vercel migration guide for the unikernel runtime class - #196
Conversation
Move the guide from general-purpose to unikernel: package the app with datumctl compute build, check it with --analyze, and deploy with --runtime-class=unikernel. Add the alb plugin and compute plugin v0.12.0 prerequisites, an IPv4 fallback for the verification step, and corrected basic auth and troubleshooting entries. Fix pages that said envFrom and exec aren't available on unikernel. The live unikernel class lists both. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
scotwells
left a comment
There was a problem hiding this comment.
Please separate the two deploy paths. Deploying a prebuilt image can run from an empty folder, but the --build alternative needs the app source and Dockerfile. Show where to run that command so someone following the guide builds the intended app.
For sharp, please replace the --analyze check in the Image Optimization row with a runtime check, such as resizing an image in the deployed app. As the packaging step notes, the analyzer can’t verify libraries loaded at runtime, so a clean report doesn’t establish that image processing works.
Split the deploy step into a prebuilt-image path and a build-from-source path, and show where to run each. Replace the analyze-only check for sharp with a runtime check on the deployed app. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
scotwells
left a comment
There was a problem hiding this comment.
Both fixes look good. The source-build example points --build at the app directory, and the guide now verifies sharp by requesting a resized image from the deployed app.
Summary
guides/migrate-from-vercel.mdxfor theunikernelruntime class. The guide no longer deploys ongeneral-purpose.datumctl compute build, check it with--analyze, and deploy with--runtime-class=unikernel.albplugin.envFromandexecaren't available onunikernel. The live class lists both as supported (datumctl get runtimeclass unikernel). Updated:compute/runtimes/overview.mdx,compute/runtimes/unikernels.mdx,compute/configuration.mdx,compute/troubleshooting.mdx,compute/instance-shell.mdx,compute/limitations-and-roadmap.mdx.Test plan
Run against datumctl v0.25.0, compute plugin v0.16.4, and alb plugin v0.37.0 on a test project, using a small Astro app with the Node adapter and
sharp.datumctl compute build --analyzereports no issues for the guide's Dockerfiledatumctl compute deploy --buildbuilds, pushes, and deploys, and the image is pinned by digest--env-from-secretreaches the app onunikernelsharpworks in the unikernelHOST=0.0.0.0returns503at the edgealb auth setandunset(credentials take up to a minute to apply)compute restartand the placeholder-check snippetdatumctl compute execruns commands on a unikernel Instancemint broken-linkspassesvercel env pulland the[SENSITIVE]behavior, custom domain attach, the GitHub Actions step, the portal Shell tab, and interactiveexec -itOpen questions
unikernel, the current name.platform/isolation.mdx,platform/kubernetes.mdx, and thegeneral-purposeruntime pages) still describegeneral-purposeand Kata. They are out of scope here.🤖 Generated with Claude Code